﻿using System;
using System.Collections.Generic;
using System.Text;

using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;
using H2.NET.Data.Common.Validates;

namespace H2.NET.Business
{
    [Table]
    [Serializable]
    public partial class spm_Sales_2 : DataObject
    {
        [ID]
        [DID]
        public string ID { get { return _ID; } set { _ID = value; EntityState.FieldChange("ID"); } } private string _ID; public static FieldInfo iD = new FieldInfo("spm_Sales_2", "ID");
        [Column]
        public string Process { get { return _Process; } set { _Process = value; EntityState.FieldChange("Process"); } } private string _Process; public static FieldInfo process = new FieldInfo("spm_Sales_2", "Process");
        [Column]
        public int Incident { get { return _Incident; } set { _Incident = value; EntityState.FieldChange("Incident"); } } private int _Incident; public static FieldInfo incident = new FieldInfo("spm_Sales_2", "Incident");
        [Column]
        public string UserName { get { return _UserName; } set { _UserName = value; EntityState.FieldChange("UserName"); } } private string _UserName; public static FieldInfo userName = new FieldInfo("spm_Sales_2", "UserName");
        [Column]
        public string Sales_office_2 { get { return _Sales_office_2; } set { _Sales_office_2 = value; EntityState.FieldChange("Sales_office_2"); } } private string _Sales_office_2; public static FieldInfo sales_office_2 = new FieldInfo("spm_Sales_2", "Sales_office_2");
        [Column]
        public string Sap_Code { get { return _Sap_Code; } set { _Sap_Code = value; EntityState.FieldChange("Sap_Code"); } } private string _Sap_Code; public static FieldInfo sap_Code = new FieldInfo("spm_Sales_2", "Sap_Code");
        [Column]
        public string Name { get { return _Name; } set { _Name = value; EntityState.FieldChange("Name"); } } private string _Name; public static FieldInfo name = new FieldInfo("spm_Sales_2", "Name");
        [Column]
        public string E_Mail { get { return _E_Mail; } set { _E_Mail = value; EntityState.FieldChange("E_Mail"); } } private string _E_Mail; public static FieldInfo e_Mail = new FieldInfo("spm_Sales_2", "E_Mail");
        [Column]
        public string Tel { get { return _Tel; } set { _Tel = value; EntityState.FieldChange("Tel"); } } private string _Tel; public static FieldInfo tel = new FieldInfo("spm_Sales_2", "Tel");
        [Column]
        public string Vendor_Code { get { return _Vendor_Code; } set { _Vendor_Code = value; EntityState.FieldChange("Vendor_Code"); } } private string _Vendor_Code; public static FieldInfo vendor_Code = new FieldInfo("spm_Sales_2", "Vendor_Code");

        [Column]
        [NowDate]
        public DateTime Time { get { return _Time; } set { _Time = value; EntityState.FieldChange("Time"); } }
        private DateTime _Time;
        public static FieldInfo time = new FieldInfo("spm_Sales_2", "Time");

        [Column]
        [DefaultInt(0)]
        public int Status { get { return _Status; } set { _Status = value; EntityState.FieldChange("Status"); } }
        private int _Status;
        public static FieldInfo status = new FieldInfo("spm_Sales_2", "Status");
    }
}
